﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRAdminUI/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="AddCertificates.aspx.cs" Inherits="HRM.UI.HRAdminUI.EmpModule.AddCertificates" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
    <link href="../../../Styles/Employee/AddCertificateCss.css" rel="stylesheet"
        type="text/css" />
         <script type="text/javascript" language="javascript">

             function CheckField() {
                 if (document.getElementById("<%=UploadSSC.ClientID%>").value == "") {
                     document.getElementById("<%=MsgLabel.ClientID%>").textContent = "Please Upload Certificates!";
                     document.getElementById("<%=MsgLabel.ClientID%>").style.color = "red";
                     document.getElementById("<%=UploadSSC.ClientID%>").focus();
                     return false;
                 }
                
                 return true;
             }
  

    </script>
   <table id="certificateTB">
        <tr>
            <td class="msgLabel" colspan="2">
                 <asp:Label runat="server" ID="MsgLabel"></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td class="Label">
                <asp:Label ID="Label1" runat="server">Employee Code</asp:Label>
            </td>
            <td class="Field">
                <%-- <asp:Label runat="server" ID="MsgEmpCode" CssClass="CodeMsg" Text="Faruqe-1001"></asp:Label>--%>
                <p id="employeeCode" runat="server" class="CodeMsg">
                </p>
            </td>
        </tr>
        <tr id="textboxCode" runat="server">
            <td class="Fieldcert">
                Employee Code
            </td>
            <td class="Labelcert">
                <input type="text" runat="server" id="txtEmpCode" class="textboxinput" />
            </td>
        </tr>
        <tr>
            <td class="Fieldcert">
                Exam Name
            </td>
            <td class="Labelcert">
             <input type="text" runat="server" value="Please write  Exam Name" class="textboxinput"
                    id="txtExamName" onblur="if (this.value == '') {this.value = 'Please write Exam Name';}"
                    onfocus="if (this.value == 'Please write  Exam Name') {this.value = '';}" />   
            </td>
        </tr>
        <tr>
            <td class="Fieldcert">
               Choose Certificates
            </td>
            <td class="Labelcert">
                <input type="file" runat="server" id="UploadSSC" class="textboxinput" alt="SSC"
                    title="SSC" />
            </td>
        </tr>
        <tr>
            <td colspan="2" id="btnTD" style="text-align: center">
                <input id="Submit1" type="submit" name="submit" runat="server" value="Add Certificate"
                    class="btnCss" onserverclick="SaveCertificates" onclick="return CheckField()"/>
            </td>
        </tr>
    </table>
    <div class="helpingTipsDiv">
        <p class="helptips" style="text-align: center">*Helping Tips*</p>
        
        <ul>
            <li>If You want to add employee certificates</li>
            <ol>
                <li>Add Employee Code into textbox.</li>
                <li>Write certificate name(single exam name like SSC & Click browse file to select certificate.</li>
                <li>If you want to Add more certificates then rules no-2</li>
            </ol>
            
        </ul>
    </div>
</asp:Content>
